package org.sbt.web;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
/**
 * 项目打war包必须加入此类
 * @author yang
 *
 */
public class ServletInitializer extends SpringBootServletInitializer {  

    @Override  
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {  
    	//MyApplication是spring-boot的启动类
        return application.sources(MyApplication.class);  
    }  

}  